<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title><?php echo $data['jname']?>招聘-<?php echo $data['shortname']?>招聘-聘Pin网</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/style.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/content.css"/>
		<script src="./Public/Home/js/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/jquery.easing.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/content.js" type="text/javascript" charset="utf-8"></script>
		<!-- 百度地图 -->
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=M4h2Gc1ZS7zNubuXKI7k6E875WvNwBc8"></script>
		<!-- 收藏功能 -->
		<script type="text/javascript">
		$(function(){
			$(".jb_collention").click(function(){
				<?php if(isset($_SESSION['homeInfo'])){?>
                
				if($(this).find('span').html()=='收藏职位'){
					var jid = <?php echo $data['jid']?>;
					var uid = <?php echo $_SESSION['homeInfo']['uid']?>;
					$.ajax({
						type:"post",
						url:"<?php echo U('Collection/collect')?>",
						data:{jid:jid,uid:uid},
						dataType:"JSON",
						success:function(phpData){
							if(phpData){
								$(".jb_collention").addClass('collected').find('span').html('已收藏');
							}
						}
					});

				}else{
					if(confirm('确定要取消收藏该职位吗？')){
						var jid = <?php echo $data['jid']?>;
						var uid = <?php echo $_SESSION['homeInfo']['uid']?>;
						$.ajax({
							type:"post",
							url:"<?php echo U('Collection/unCollect')?>",
							data:{jid:jid,uid:uid},
							dataType:"JSON",
							success:function(phpData){
								if(phpData){
									$(".jb_collention").removeClass('collected').find('span').html('收藏职位');
								}
							}
						});
					}
				}
				<?php }else{?>
				alert('请您先登录账号');
				
               <?php }?>
			})
		})
		</script>
	</head>
	<body>
	<!--顶部黑色区域-->
	<div id="header">
		<div class="top_logon">
			<div class="logo">
				<a href="index.html" class="lg_app">聘 Pin 首页</a>
				<a href="company.html" class="lg_os">进入企业版</a>
			</div>
			<ul class="top_r">
							<li>
					<a href="login.html">登录</a>
				</li>
				<li>
					<a href="register.html" class="zc">注册</a>
				</li>
			
               			</ul>
		</div>
	</div>
	<!--顶部黑色区域结束-->

	<!--顶部白色导航区域-->
	<div id="top_grey">
		<div id="guide">
			<div class="guide_left">
				<a href="index.html"></a>
			</div>
			<ul class="guide_r">
							<li>
					<a href="index.html">首页</a>
				</li>
				<li>
					<a href="http://localhost/lagou/index.php?m=Home&c=List&a=company">公司</a>
				</li>

			
               			</ul>
			<div class="kong"></div>
		</div>
	</div>
	<!--顶部白色导航区域结束-->

	<!--页面主体-->
	<div id="container">
		<div class="content_l">
			<dl class="job_datail">
				<dt class="jobD_title">
					<h1>
						<em></em>
						<div><?php echo $data['gsname']?>招聘</div>
						<?php echo $data['jname']?>
					</h1>
					<?php if($data['collect']==0){?>
                
						<a href="javascript:void(0);" class="jb_collention">
							<span id="collection_pos">收藏职位</span>
						</a>
					<?php }else{?>
						<a href="javascript:void(0);" class="jb_collention collected">
							<span id="collection_pos">已收藏</span>
						</a>
					
               <?php }?>
				</dt>
				<dd class="job_request">
					<p>
						<span class="money_red"><?php echo $data['salary']?></span>
						<span><?php echo $data['city']?></span>
						<span><?php echo $data['experience']?></span>
						<span><?php echo $data['education']?></span>
						<span><?php echo $data['jobtype']?></span>
					</p>
					<p>职位诱惑 : <?php echo $data['benefit']?></p>
					<p class="publish_time"><?php echo date('Y-m-d H:i',$data['sendtime'])?>  发布于聘Pin网</p>
				</dd>
				<dd class="job_bt" style="min-height:940px;">
					<h3 class="description">职位描述</h3>
					<p><?php echo str_replace(array("\n","\r\n"),"<BR />",$data['des'])?></p>
				</dd>
				<dd class="job_publisher">
					<h3>职位发布者</h3>
					<div class="hr_job">
						<img src="<?php echo $data['picture']?$data['picture']:'./Public/Home/image/myresume/default_headpic.png'?>"/>
						<div class="hr_name">
							<span class="name"><?php echo $data['username']?></span>
							<span class="pos">招聘 </span>
						</div>
						<div class="hr_data">
							<div style="border:0;float:right; ">
								<span class="data"><?php echo $data['reg']?>%</span>
								<span class="tip">简历及时处理率<span class="tip_text" style="width: 250px;">投递后7天内处理完成的简历所占比例</span></span>
							</div>
						</div>
					</div>
				</dd>
				<dd class="job_deliver">
					<?php if(!$data['deliver']){?>
                
					<a href="javascript:if(confirm('确定要应聘该职位吗？')) location.href='status_<?php echo $_GET['jid']?>.html';">投个简历</a>
					<?php }else{?>
					<a href="javascript:void(0);" style="background:#bfbfbf;color:#fff;cursor:default;">已投递</a>
					
               <?php }?>
				</dd>
			</dl>
		</div>
		<div class="content_r">
			<dl class="job_company">
				<dt>
					<a href="company_<?php echo $data['gsid']?>.html" target="_blank">
						<img src="<?php echo $data['logo']?>" style="width: 80px;height: 80px;"/>
						<div>
							<h2>
								<?php echo $data['shortname']?>
								<img src="./Public/Home/image/valid.png" style="width: 15px; height: 19px;"/>
							</h2>
						</div>
					</a>
				</dt>
				<dd>
					<ul class="c_feature">
						<li>
							<span>领域</span> <?php echo $data['industry']?>
						</li>
						<li>
							<span>规模</span> <?php echo $data['size']?>
						</li>
					</ul>
					<h4>发展阶段</h4>
					<ul class="c_feature">
						<li>
							<span>目前阶段</span> <?php echo $data['financing']?>
						</li>
					</ul>
					<h4>工作地址</h4>
					<div class="work_addr">
						- <?php echo $data['jobaddress']?>
					</div>
					<div id="smallmap">
						<div id="allmap" style="width:100%;height:100%;"></div>
					</div>
					<!-- 百度地图 -->
					<script type="text/javascript">
						// 百度地图API功能
						var map = new BMap.Map("allmap");  // 创建Map实例
						// map.centerAndZoom("<?php echo $data['jobaddress']?>",15);
						var myGeo = new BMap.Geocoder();
						// 将地址解析结果显示在地图上,并调整地图视野
						myGeo.getPoint("<?php echo $data['jobaddress']?>", function(point){
							map.centerAndZoom(point, 15);
							var marker = new BMap.Marker(point);  // 创建标注
							map.addOverlay(marker);// 将标注添加到地图中
							marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
						})
						map.enableScrollWheelZoom(true);
					</script>
				</dd>
			</dl>
			<div class="similar">
				<h4 class="similar_title">
					<span>相似职位</span>
				</h4>
				<div class="similar_content">
					<ul class="sl_reset">
					<?php foreach ($sameData as $v){?>
						<li>
							<a href="content_<?php echo $v['jid']?>.html" target="_blank">
								<div class="item_logo">
									<img src="<?php echo $v['logo']?>"/>
								</div>
								<div class="item_pos">
									<h2><?php echo $v['jname']?></h2>
									<p><?php echo $v['salary']?>k</p>
									<p class="similar_company_name">
										<span class="scn_1"><?php echo $v['gsname']?> </span>
										<span>[<?php echo $v['city']?>]</span>
									</p>
								</div>
							</a>
							<div class="sc_info">
								<div class="arr">
									<span></span>
								</div>
								<p>
									<span>领域：</span>
									<span><?php echo $v['industry']?></span>
								</p>
								<p>
									<span>阶段：</span>
									<span><?php echo $v['financing']?></span>
								</p>
								<p>
									<span>规模：</span>
									<span><?php echo $v['size']?></span>
								</p>
								<div class="sc_label">
									<span>“<?php echo $v['benefit']?>”</span>
								</div>
							</div>
						</li>
					<?php }?>
					</ul>
					<a href="<?php echo U('List/index',array('k'=>$data['jname']))?>" target="_blank" class="jobs_similar_footer">查看更多相似职位</a>
				</div>
			</div>
		</div>
	</div>
	<!--页面主体结束-->





	<!--回到顶部-->
	<a href="javascript:void(0);" id="back"></a>
	<!--回到顶部结束-->

	<!--底部区域-->
	<div id="floor">
		<div class="wrap">
			<i></i>
			<div class="fl_r">
				<a href="http://c69_wangfeng.houdunphp.com/blogDemo2.0/blog.html" target="_blank">作者博客</a>
				<a href="javascript:void(0);" class="wechat">
					作者微信
					<img src="./Public/Home/image/fl_wechat.jpg" />
				</a>
				<span>联系作者：<em>18637326191 </em></span>
			</div>
			<div class="fl_btm">
				<span>
					Copyright © 2010-2015 wfeng.com All Rights Reserved |
				</span>
				<span>京ICP备12048441号-3 |</span>
				<span>wangfeng@163.com</span>
			</div>
		</div>
	</div>

	<!--底部区域结束-->
	                
	<!--底部登录条-->
	<div id="logintool">
		<div>
			<em></em>
			<img src="./Public/Home/image/login3.png"/>
			<span class="companycount">

			</span>
			<span class="jobscount">

			</span>
			<a href="javascript:void(0);" class="bar_login">
				<i></i>
			</a>
			<div class="lt_r">
				<a href="register.html">
					<i></i>
				</a>
			</div>
		</div>
	</div>
	<!--底部登录条结束-->

	<!--登录界面部分-->
	<div id="all_cover"></div>
	<div id="colorbox">
		<div id="box_m">
			<div class="box_content">
				<div class="bctitle">登录</div>
				<div class="bcdown">
					<div class="bcdcenter">
						<form id="bcd_login" action="login.html" method="post">
							<div class="username">
								<input type="text" id="email" placeholder="请输入已验证手机/邮箱" name="account" value=""/>
								<span id="input_tips"></span>
							</div>
							<div class="password">
								<input type="password" id="ipassword" placeholder="请输入密码" name="password" value=""/>
								<span id="input_tips"></span>
							</div>
							<div class="input_item input2" >
								<input type="text" placeholder="请证明你不是机器人" class="input input_white" style="width: 130px;" name="code" value="" /><img src="http://localhost/lagou/index.php?m=Home&c=Enter&a=code" class="code_check" onclick="javascript:this.src=this.src+'&w='+Math.random()" title="看不清，换一张" style="cursor:pointer;" />
							</div>
							<!-- <a href="" id="foget">忘记密码？</a> -->
							<input type="submit" value="登     录" id="sub_btn"/>
						</form>
						<div class="bcd_right">
							<div>还没有聘Pin帐号？</div>
							<a href="register.html" class="registor_now">立即注册</a>
							<div class="login_others">使用以下帐号直接登录:</div>
							<a href="" id="icon_wb"></a>
							<a href="" id="icon_qq"></a>
						</div>
					</div>
				</div>
				<input type="button" id="close"/>
			</div>
		</div>
	</div>


	<!--登录界面部分结束-->

	
               



	</body>
</html>
















